<input id="input" maxlength="5">
<script>
input.focus();
internals.setSuggestedValue(input, 'MisterLongName');
internals.setAutofilled(input, true);
input.setSelectionRange(0, 5);
</script>
